<div class="register">
    <!-- 注册页面 -->
    <form class="d-b ta-c" name="form">
        <div class="form-line ta-l p-r">
            <span class="icon account va-t d-ib "></span>
            <input name="phone" ng-model="user.name" validator="required,phone" class="d-ib" type="text" placeholder="输入手机号码">
        </div>
        <div class="form-line ta-l p-r">
            <span class="icon lock va-t d-ib "></span>
            <input name="password" ng-model="user.password" validator="required,password" class="d-ib" type="password" placeholder="设置6位以上的密码">
        </div>
        <div class="message-wrap ta-l p-r">
            <input name="code" validator="required" ng-model="user.code" class="message-box" type="text" placeholder="短信验证码">
            <!-- {{time ? 'disabled' : ''}} 置灰 -->
            <!-- time ? 1==1 : send()  ==> 如果time存在，就不能点击；不存在则可以点击 -->
            <span class="message f-r {{time ? 'disabled' : ''}}" ng-click="time ? 1==1 : send()" ng-bind="time ? time : '发送短信'">发送短信</span>
            <div class="clear"></div>
        </div>
        <button class="login-btn" ui-sref="login">跳转到登录</button>
        <!-- 如果校验通过，则可以提交 -->
        <button class="register-btn" validation-submit="form" ng-click="submit()">注册</button>
    </form>
</div>
















